home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
research
/
examples
/
doc
/
animhaus
next >
Wrap
Text File
|
1997-07-08
|
739b
|
27 lines
; This batch file creates rotates a three-dimensional "house".
; The example is from Chapter 11, "Plotting Multi-dimensional
; Arrays", of _Using IDL_.
; Reset any 3-D transformations that may be in use.
WINDOW, /FREE, XSIZE=300, YSIZE=300, COLORS=-16
; Initialize animation: set frame size and number of frames.
sizx = 300
sizy = 300
nframes = 16
XINTERANIMATE, SET=[sizx, sizy, nframes]
; Loop to create nframes images, rotating in the Z plane each time.
FOR i = 0, nframes - 1 DO BEGIN $
SCALE3, AX = 75, AZ = i * 360. / nframes & $
ERASE & $
HOUSE & $ ;Draw the house.
SCALE3, AX = 75, AZ = i * 360. / nframes & $
XINTERANIMATE, FRAME=i, WINDOW=!D.WINDOW & $
ENDFOR
WDELETE
; Run the animation.
XINTERANIMATE